package io.bloom.webspider;

import lombok.Data;

@Data
public class Item {

    private String text;

    private String link;

    private String type;

    public static Item of(String link, String text) {
        return of(link, text, "link");
    }

    public static Item of(String link, String text, String type) {
        Item item = new Item();
        item.setLink(link);
        item.setText(text);
        item.setType(type);
        return item;
    }
}
